//* {
//  box-sizing: border-box;
//}

html {
  height: 100%;

  body {
    height: 100%;
    margin: 0;

    a {
      text-decoration: none;
    }
  }
}

#layout {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-content: stretch;
}

#layout-top {
  height: 4rem;
  box-shadow: 0 0.1rem 0.3rem 0 rgba(0, 0, 0, 0.3);
  display: flex;
  align-content: stretch;
  align-items: center;

  #logo {
    margin-left: 2rem;
  }

  #title {
    margin-left: 1rem;
    font-size: 2rem;
  }

  #menu-top {
    margin-left: 4rem;
    display: flex;
    flex-grow: 1;
    font-size: 2rem;
    height: 100%;

    a {
      padding: 0 1rem 0 1rem;
      line-height: 4rem;
      transition: background-color .3s;
      cursor: pointer;
    }
  }
}

.layout-content {
  flex-grow: 1;

  #content-background {
    padding: 1rem;
    height: 100%;
    background-color: #ddd;
    overflow-x: auto;

    #content {
      background-color: #fff;
      padding: 1rem;
      height: 100%;
      box-shadow: #666 0px 0px 10px;
      overflow-y: auto;
    }
  }
}

#layout-bottom {
  line-height: 2rem;
  text-align: center;
  box-shadow: 0 0.1rem 0.3rem 0 rgba(0, 0, 0, 0.3);
}

#layout-side-menu {
  display: flex;
  height: 100%;

  #menu-left {
    width: 15rem;
    flex-shrink: 0;
    box-shadow: 0 0 0.3rem 0 rgba(0, 0, 0, 0.3);
  }

  .ui-submenu-list {
    .ui-menuitem-text {
      margin-left: 1.5rem;
    }
  }

}

.ui-dialog .ui-dialog-content {
  overflow: visible !important;
}

.ui-chkbox-label {
  margin-right: 1rem;
}

.ui-messages-error {
  color: #ff0000;
}
